// @ts-ignore
/* eslint-disable */

/**
 * 请勿随意修改。
 * */

import { request, type RequestOptions } from '@/utils/request'


/** 用户列表 GET /system/user/getUserList */
export async function userList(params: API.UserParams, options?: RequestOptions) {
  return request(`/system/user/getUserList`, {
    method: 'GET',
    params: {
      ...params
    },
    ...(options || {})
  })
}


/** 用户回显 GET /system/user/addUpdateUserEcho/${id} */
export async function userEcho(id: string, options?: RequestOptions) {
  return request(`/system/user/addUpdateUserEcho/${id}`, {
    method: 'GET',
    ...(options || {})
  })
}


/** 回显角色列表 GET /system/user/addUpdateUserEcho/${id} */
export async function userEchoList(options?: RequestOptions) {
  return request(`/system/user/addUpdateUserEcho`, {
    method: 'GET',
    ...(options || {})
  })
}


/** 回显医院和科室 GET /system/user/addUpdateUserEcho/${id} */
export async function userEchoDP(body: API.PageParams, options?: RequestOptions) {
  return request(`/system/user/searchDepaAndHosp`, {
    method: 'POST',
    data: body,
    ...(options || {})
  })
}

/** 新增用户 POST  /system/user/addUser */
export async function userAddUser(body, options?: RequestOptions) {
  return request(`/system/user/addUser`, {
    method: 'POST',
    data: body,
    ...(options || {})
  })
}


/** 修改用户信息 POST /system/user/editUser */
export async function userEdit(body: API.PageParams, options?: RequestOptions) {
  return request(`/system/user/editUser`, {
    method: 'POST',
    data: body,
    ...(options || {})
  })
}


/** 更新权限 POST /system/user/updateAuthority */
export async function userAuth(options?: RequestOptions) {
  return request(`/system/user/updateAuthority`, {
    method: 'GET',
    ...(options || {})
  })
}


/** 回显运营商务制作人 GET /meereen/tiktok */
export async function userEchoTikTok(options?: RequestOptions) {
  return request(`/meereen/tiktok`, {
    method: 'GET',
    ...(options || {})
  })
}


/** 绑定已有的抖音号回显 GET /meereen/tiktok/boundTiktokEcho */
export async function userEchoBindTikTok(params, options?: RequestOptions) {
  return request(`/meereen/tiktok/boundTiktokEcho`, {
    method: 'GET',
    params: {
      ...params
    },
    ...(options || {})
  })
}


/** 新增抖音号 GET /meereen/tiktok */
export async function userAddTikTok(body, options?: RequestOptions) {
  return request(`/meereen/tiktok`, {
    method: 'POST',
    data: body,
    ...(options || {})
  })
}


/** 绑定已有的抖音号 POST /meereen/tiktok/boundTiktok */
export async function userBoundTikTok(body, options?: RequestOptions) {
  return request(`/meereen/tiktok/boundTiktok`, {
    method: 'POST',
    data: body,
    ...(options || {})
  })
}


/** 菜单权限回显 POST /system/user/getMenusByRoleIds */
export async function userEchoRoles(body, options?: RequestOptions) {
  return request(`/system/user/getMenusByRoleIds`, {
    method: 'POST',
    data: body,
    ...(options || {})
  })
}

